<?php 
class productsObj 
{
	var $id;
	var $code;
	var $name;
	var $description;
	var $price;
	var $unitID;
	var $cateID;
	var $subcateID;
	var $imageID;
	var $deleteflag;
	var $otherFields;

	public function TableName() { return "products";}
	public function idFieldName() { return "id";}
	public function codeFieldName() { return "code";}
	public function nameFieldName() { return "name";}
	public function descriptionFieldName() { return "description";}
	public function priceFieldName() { return "price";}
	public function unitIDFieldName() { return "unitID";}
	public function cateIDFieldName() { return "cateID";}
	public function subcateIDFieldName() { return "subcateID";}
	public function imageIDFieldName() { return "imageID";}
	public function deleteflagFieldName() { return "deleteflag";}

	function productsObj ($pid="",$pcode="",$pname="",$pdescription="",$pprice="",$punitID="",$pcateID="",$psubcateID="",$pimageID="",$pdeleteflag="") {

		$this->id = $pid;
		$this->code = $pcode;
		$this->name = $pname;
		$this->description = $pdescription;
		$this->price = $pprice;
		$this->unitID = $punitID;
		$this->cateID = $pcateID;
		$this->subcateID = $psubcateID;
		$this->imageID = $pimageID;
		$this->deleteflag = $pdeleteflag;
	}

} 
?>